import React from 'react'
import { NavLink, Outlet } from 'react-router-dom'

export default function Message() {
    return (
        <>
            <ul>
                <li>
                    <NavLink to='detail/1/atguigu'>params参数</NavLink>
                </li>
                <li>
                    <NavLink to='query?id=2&school=sgg'>query参数</NavLink>
                </li>
                <li>
                <NavLink to='state' state={{id:6,school:'尚硅谷'}}>state参数1</NavLink>
                </li>
                <li>
                <NavLink to='state' state={{id:7,school:'尚硅谷2'}}>state参数2</NavLink>
                </li>
            </ul>
            <Outlet/>
        </>

    )
}
